setTimeout(() => {
    console.log('timeout childThread')
}, 0)

console.log('childThread');

onmessage = function (val) {
    console.log('这是parent传递过来的参数', val);
}

postMessage('hello parent');